﻿using Acme.SmartWMS.Outbound.CustomerShipmentService.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Dynamic.Core;
using System.Text;
using System.Threading.Tasks;

namespace Acme.SmartWMS.Outbound.CustomerShipmentService
{
    public interface ICustomerShipmentAppService
    {
        /// <summary>
        /// 获取客户出货显示 查询 分页
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="shipmentNumber"></param>
        /// <param name="productCode"></param>
        /// <returns></returns>
        Task<PagedResult> GetCustomerShipmentList(int pageIndex, int pageSize, string? shipmentNumber, string? productCode);
        /// <summary>
        /// 添加客户出货
        /// </summary>
        /// <param name="customerShipmentDTO"></param>
        /// <returns></returns>
        Task<int> AddCustomerShipment(CustomerShipmentDTO customerShipmentDTO);
        /// <summary>
        /// 删除客户出货
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<int> DeleteCustomerShipment(string ids);
        /// <summary>
        /// 获取客户出货主键Id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<CustomerShipment> GetCustomerShipmentById(int id);
        /// <summary>
        /// 更新客户出货
        /// </summary>
        /// <param name="customerShipmentDTO"></param>
        /// <returns></returns>
        Task<int> UpdateCustomerShipment(CustomerShipmentDTO customerShipmentDTO);

    }
}
